﻿<%@ control language="C#" autoeventwireup="true" inherits="_modules_complaints_ucUpdateComplaint, App_Web_lvlwlbuv" %>
<script type="text/javascript">
    $(document).ready(function () {
        $('#txtScheduleDt').datepicker({ minDate: 0, dateFormat: "dd/mm/yy" }).datepicker("setDate", new Date());
        //alert(gCompId);
    });
</script>
<div style="margin-left:30px;">
    <div class="formRow" style="margin:0px;">
        <div class="formContainer">
            <span class="spnText" style="width:165px;">Complaint Description<span style="color: Red;">*</span></span>
            <div class="inputDiv" style="height: 185px;">
                <textarea id="txtAreaComplaints" class="StStng_GAnalyticsTxtA" style="width: 480px;
                    height: 170px;" onkeydown="$('#compDescAlert').text('');"></textarea>
                <div class="alert" id="compDescAlert">
                </div>
            </div>
        </div>
    </div>
    <div class="formRow"  style="margin:0px;">
        <div class="formContainer">
            <span class="spnText" style="float:none;">Technician</span>
            <div class="inputDiv" style="float:none;">
                <asp:DropDownList ID="ddlTechnicians" runat="server" CssClass="addCustomerFormInput">
                    <asp:ListItem Selected="True">--Select technician--</asp:ListItem>
                    <asp:ListItem>Dipin Kumar</asp:ListItem>
                    <asp:ListItem>Suresh Kumar</asp:ListItem>
                    <asp:ListItem>Sharath P K</asp:ListItem>
                </asp:DropDownList>
                <div class="alert" style="display: none;">
                    **Please enter the customer name
                </div>
            </div>
        </div>
        <div class="formContainer">
            <span class="spnText" style="float:none;">Schedule Date</span>
            <div class="inputDiv" style="float:none;">
                <input type="text" id="txtScheduleDt" class="addCustomerFormInput" />
            </div>
        </div>
    </div>
    <div class="formRow"  style="margin:0px;">
        <div class="formContainer">
            <span class="spnText" style="float:none;">Status</span>
            <div class="inputDiv" style="float:none;">
                <%--<input type="text" class="addCustomerFormInput" />--%>
                <select id="ddlSelectStatus" class="addCustomerFormInput" onchange="fnChangeComplaintStatus(this);">
                    <option selected="selected">--Select status--</option>
                    <option value="1">Pending</option>
                    <option value="2">Closed</option>
                </select>
                <div class="alert" style="display: none;">
                    **Please enter the customer name
                </div>
            </div>
        </div>
    </div>
    <div id="divIsSpare" class="formRow" style="display: none;margin:0px;">
        <div class="formContainer" style="width: 48%;">
            <span class="spnText" style="width: 300px;float:none;">Is any spare device given to customer?</span>
            <div class="inputDiv" style="margin-top: 5px;float:none;">
                <input type="radio" name="spare" onclick="fnClickYes();" value="Yes" />
                Yes &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="radio" name="spare" onclick="fnClickNo();" value="No" checked="checked" />
                No
                <div class="alert" style="display: none;">
                    **Please enter the customer name
                </div>
            </div>
        </div>
    </div>
    <div id="spareDetails" class="formRow" style="display: none;margin:0px;"">
        <div class="formContainer">
            <span class="spnText" style="float:none;">Spare Details</span>
            <div class="inputDiv" style="float:none;">
                <input type="text" id="txtSpareDetails" class="addCustomerFormInput" />
                <div class="alert" style="display: none;">
                    **Please enter the customer name
                </div>
            </div>
        </div>
    </div>
    <div class="formRow" style="margin: 0px;">
        <div class="formContainer" style="width: 50%;">
            <span class="spnText" style="float: none;"></span>
            <div class="inputDiv" style="width: 400px; float: none;">
                <div class="adminColorButton" style="margin-left: 0px;" onclick="fnUpdateComplaint();">
                    Update Complaint</div>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <div class="adminGrayButton">
                    Cancel</div>
            </div>
        </div>
    </div>
</div>
